package com.local.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "admin_pay_bill")
public class AdminPayBill {
	
	/**
	 * 路口uuid，用于打开闸机
	 */
	private String crossingId;
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "car_no")
    private String carNo;

    @Column(name = "pay_time")
    private Date payTime;

    @Column(name = "pay_type")
    private String payType;

    @Column(name = "price_")
    private Double price;

    @Column(name = "version")
    private Double version;

    @Column(name = "exchange_no")
    private String exchangeNo;

    @Column(name = "station_uuid")
    private String stationUuid;

    @Column(name = "longin_user_uuid")
    private String longinUserUuid;

    @Column(name = "remar_")
    private String remar;

    @Column(name = "attr1")
    private String attr1;

    @Column(name = "attr2")
    private String attr2;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType == null ? null : payType.trim();
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getVersion() {
        return version;
    }

    public void setVersion(Double version) {
        this.version = version;
    }

    public String getExchangeNo() {
        return exchangeNo;
    }

    public void setExchangeNo(String exchangeNo) {
        this.exchangeNo = exchangeNo == null ? null : exchangeNo.trim();
    }

    public String getStationUuid() {
        return stationUuid;
    }

    public void setStationUuid(String stationUuid) {
        this.stationUuid = stationUuid == null ? null : stationUuid.trim();
    }

    public String getLonginUserUuid() {
        return longinUserUuid;
    }

    public void setLonginUserUuid(String longinUserUuid) {
        this.longinUserUuid = longinUserUuid == null ? null : longinUserUuid.trim();
    }

    public String getRemar() {
        return remar;
    }

    public void setRemar(String remar) {
        this.remar = remar == null ? null : remar.trim();
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1 == null ? null : attr1.trim();
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2 == null ? null : attr2.trim();
    }

	public String getCrossingId()
	{
		return crossingId;
	}

	public void setCrossingId(String crossingId)
	{
		this.crossingId = crossingId;
	}
    
}